home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: miker3@ix.netcom.com (Mike Rubenstein)
- Newsgroups: comp.lang.c
- Subject: Re: HELP: Illegal Pointer Arithmetic
- Date: Sun, 25 Feb 1996 13:59:14 GMT
- Organization: Netcom
- Message-ID: <31306a18.309961701@nntp.ix.netcom.com>
- References: <4gj0ug$730@news.one.net> <danpop.825121139@rscernix>
- NNTP-Posting-Host: ix-dc6-23.ix.netcom.com
- X-NETCOM-Date: Sun Feb 25 5:59:03 AM PST 1996
- X-Newsreader: Forte Agent .99d/32.182
-
- danpop@mail.cern.ch (Dan Pop) wrote:
-
- > In <4gj0ug$730@news.one.net> Oren Levin <oren@one.net> writes:
- >
- > > while (! feof (fin))
- > ^^^^^^^^^^^^^^^^^^^^
- > Are there any books teaching this idiocy or is it only Pascal-induced
- > brain damage? (See the FAQ.)
-
- Not quite that, but Shildt's Annotated ANSI C Standard says
-
- The following fragment illustrates how files are commonly
- read:
-
- do {
- ch = fgetc(fp);
- /* ... */
- } while (!feof(fp));
-
- Come on Dan. You're slipping. Surely you could have guessed who
- teaches this idiocy.
-
-
- Michael M Rubenstein
-